import React from 'react';
import { Route } from 'react-router-dom'
class App extends React.Component {

  render() {
    let { path, component: Com } = this.props;
    return <>
      <Route path={path} render={(props) => {
        return <Com {...props}>
          {this.props.children}
        </Com>
      }}></Route>
    </>;
  }
}
export default App